package com.example.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.blog.domain.UserInformation;
import com.example.blog.domain.Users;
import com.example.blog.dto.operationalLogs.OperationLogsDto;
import org.springframework.stereotype.Repository;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

@Repository
public interface UserInformationService extends IService<UserInformation> {

    //上传用户的头像
    String uploadUserHeadImg(MultipartFile[] file, String oldImg);

    //新用户信息
    Boolean insertUserInfo(Users users);

    //admin用户信息设置
    String insertAdminInfo(Users users, int rid);

    //定时用户相关信息清理
    List<UserInformation> informationCleanup();

    //Admin删除用户信息
    Integer delAdminUser(Long uid, OperationLogsDto logsDto);

    //Admin新增管理员
    Integer addAdmin(MultipartFile file,String username, String password,OperationLogsDto logsDto);

    //Admin更新用户信息
    Integer updateAdminUserInfo(UserInformation userInformation1,OperationLogsDto logsDto);
}
